package com.yh.csx.crm.dao;

import com.yh.csx.crm.po.CustomerCompanyExt;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CustomerCompanyExtMapper {
    int deleteByPrimaryKey(Long id);

    int insert(CustomerCompanyExt record);

    int insertSelective(CustomerCompanyExt record);

    CustomerCompanyExt selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(CustomerCompanyExt record);

    int updateByPrimaryKey(CustomerCompanyExt record);

    List<CustomerCompanyExt> selectExistQuery(@Param("customerId") Long customerId, @Param("companyCode") String companyCode);

    String selectComp(Long customerId);

    List<String> selectCompList(Long customerId);

    CustomerCompanyExt selectCompanyCodeInfo(@Param("customerId") Long customerId, @Param("companyCode") String companyCode);
}